package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GardenFlowerImageMapper;
import com.ruoyi.system.domain.GardenFlowerImage;
import com.ruoyi.system.service.IGardenFlowerImageService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
@Service
public class GardenFlowerImageServiceImpl implements IGardenFlowerImageService 
{
    @Autowired
    private GardenFlowerImageMapper gardenFlowerImageMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public GardenFlowerImage selectGardenFlowerImageById(Long id)
    {
        return gardenFlowerImageMapper.selectGardenFlowerImageById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param gardenFlowerImage 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<GardenFlowerImage> selectGardenFlowerImageList(GardenFlowerImage gardenFlowerImage)
    {
        return gardenFlowerImageMapper.selectGardenFlowerImageList(gardenFlowerImage);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param gardenFlowerImage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertGardenFlowerImage(GardenFlowerImage gardenFlowerImage)
    {
        gardenFlowerImage.setCreateTime(DateUtils.getNowDate());
        return gardenFlowerImageMapper.insertGardenFlowerImage(gardenFlowerImage);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param gardenFlowerImage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateGardenFlowerImage(GardenFlowerImage gardenFlowerImage)
    {
        gardenFlowerImage.setUpdateTime(DateUtils.getNowDate());
        return gardenFlowerImageMapper.updateGardenFlowerImage(gardenFlowerImage);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteGardenFlowerImageByIds(Long[] ids)
    {
        return gardenFlowerImageMapper.deleteGardenFlowerImageByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteGardenFlowerImageById(Long id)
    {
        return gardenFlowerImageMapper.deleteGardenFlowerImageById(id);
    }
}
